﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace lcs.Web.materialbasicinfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int mbid=(Convert.ToInt32(strid));
					ShowInfo(mbid);
				}
			}
		}
		
	private void ShowInfo(int mbid)
	{
		lcs.BLL.materialbasicinfo bll=new lcs.BLL.materialbasicinfo();
		lcs.Model.materialbasicinfo model=bll.GetModel(mbid);
		this.lblmbid.Text=model.mbid.ToString();
		this.lblmbm.Text=model.mbm;
		this.lblmms.Text=model.mms;
		this.lblmunit.Text=model.munit;
		this.lblmtype.Text=model.mtype.ToString();
		this.lblmark1.Text=model.mark1;
		this.lblmark2.Text=model.mark2;
		this.lblmark3.Text=model.mark3;

	}


    }
}
